-- GENERATED SPELL FOR [Tainted Arcane Wraith] --


function spell0_15298(pUnit, Event) --@Slow,n/a--
pUnit:FullCastSpellOnTarget(25603,pUnit:GetMainTank ())
pUnit:RegisterEvent('Sorts_15298', 5000, 1)
end

function Sorts_15298(pUnit, Event)
local choix_sorts_15298 = math.random(0, 0)
if choix_sorts_15298 == 0 then
pUnit:RegisterEvent('spell0_15298', 1, 1)
end
end

function mob15298_Action(pUnit, Event)
pUnit:RegisterEvent('Sorts_15298', math.random(1500, 3000), 1)
end

function mob15298_Leave(pUnit, Event)
--pUnit:RemoveEvents();--
end

function mob15298_Kill(pUnit, Event)
--pUnit:RemoveEvents();--
end

function mob15298_Die(pUnit, Event)
pUnit:RemoveEvents();
end

RegisterUnitEvent(15298, 1, 'mob15298_Action')
RegisterUnitEvent(15298, 2, 'mob15298_Leave')
RegisterUnitEvent(15298, 3, 'mob15298_Kill')
RegisterUnitEvent(15298, 4, 'mob15298_Die')
